package com.peress.mycrew.rowing.data.entries;

public final class BaseDataEntry<T> {

    private final long mTimestamp;
    private final T mData;

    public BaseDataEntry(T data) {
        this(data, System.currentTimeMillis());
    }

    public BaseDataEntry(T data, long timestamp) {
        mTimestamp = timestamp;
        mData = data;
    }

    public long getTimestamp() {
        return mTimestamp;
    }

    public T getData() {
        return mData;
    }
}
